package com.story.api.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;

/**
 * <p>
 * 视频分类表
 * </p>
 *
 * @author yangbo
 * @since 2017-12-14
 */
@TableName("vedio_category")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class VedioCategory extends Model<VedioCategory> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 类别名称
     */
	private String name;
    /**
     * 图标路径
     */
	private String iconPath;
    /**
     * 类别简介
     */
	private String intro;
    /**
     * 类型标签
     */
	private String type;
    /**
     * 创建时间
     */
	private Date createTime;

	private Integer bannerId;

	/**
	 * 推荐排序
	 */
	private Integer recRate;

	/**
	 * 资源类型
	 */
	private Integer resType;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIconPath() {
		return iconPath;
	}

	public void setIconPath(String iconPath) {
		this.iconPath = iconPath;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getBannerId() {
		return bannerId;
	}

	public void setBannerId(Integer bannerId) {
		this.bannerId = bannerId;
	}

	public Integer getRecRate() {
		return recRate;
	}

	public void setRecRate(Integer recRate) {
		this.recRate = recRate;
	}

	public Integer getResType() {
		return resType;
	}

	public void setResType(Integer resType) {
		this.resType = resType;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "VedioCategory{" +
			"id=" + id +
			", name=" + name +
			", iconPath=" + iconPath +
			", intro=" + intro +
			", type=" + type +
			", createTime=" + createTime +
			", bannerId=" + bannerId +
			", recRate=" + recRate +
			"}";
	}
}
